import request from '@/utils/request'

export function select (params,query) {
  return request({
    url: '/notice/list?page='+query.pageNum+"&size="+query.pageSize,
    method: 'post',
    data:params
  })
}


export function insert (params) {
  return request({
    url: '/notice/add',
    method: 'post',
    data:params
  })
}

export function update (params) {
  return request({
    url: '/notice/update',
    method: 'post',
    data:params
  })
}

export function del (params) {
  return request({
    url: '/notice/delete',
    method: 'post',
    data:params
  })
}

export function detail(id) {
  return request({
    url: '/notice/detail',
    method: 'post',
    params:{id: id}
  })
}

export function getNotice() {
  return request({
    url: '/notice/getNotice',
    method: 'get'
  })
}
